package io.packaging;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class Changee {
    public static void main(String[] args) {


        {
            try (FileInputStream a = new FileInputStream("D:\\workspace\\basic-chapter\\src\\text");
                 //原始字节输入流按指定字符编码转换字符输入流
                 Reader B = new InputStreamReader(a, "UTF-8");
                 BufferedReader C = new BufferedReader(B);) {
                String line;
                while ((line = C.readLine()) != null) {
                    System.out.println(line);
                }


            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }

    }
}